package com.sright.bcard.content.dal.mapper;

import com.sright.bcard.common.service.share.base.dao.BaseMapper;
import com.sright.bcard.content.dal.entity.UserTagsDO;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserTagsDOMapper extends BaseMapper<UserTagsDO> {

    int deleteByPrimaryKey(@Param("id") Long id);

    int deleteByTagId(@Param("tagId") Long tagId);

    int deleteByUserId(@Param("analysisId") Long analysisId);

    List<UserTagsDO> selectByEnterpriseIdAndUserId(@Param("enterpriseId") Long enterpriseId, @Param("analysisId") Long analysisId);

    List<UserTagsDO> selectByAnalysisId(Long analysisId);
}